package bao;

public class lei10 {
    private String name;
    private double score;

    public lei10(String name, double score) {
        this.name = name;
        this.score = score;
    }
    public lei10() {
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getScore() {
        return score;
    }

    public void setScore(double score) {
        this.score = score;
    }


    public void printPass() {
        System.out.println(score >= 60 ? "成绩合格" : "成绩不合格");
    }
}
